import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class LoadingService {
  public loading:boolean = false;
  constructor() {}
  // 显示loading
  showLoading():void{
    this.loading = true;
  }
  // 关闭Loading
  closeLoading():void{
    this.loading = false;
  }
}
